home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / impZeroRow.z / impZeroRow
Text File  |  1998-10-30  |  7KB  |  133 lines

  1.  
  2.  
  3.  
  4. iiiimmmmppppZZZZeeeerrrrooooRRRRoooowwww((((3333))))                    IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo                     iiiimmmmppppZZZZeeeerrrrooooRRRRoooowwww((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      impZeroRow, impInitRow, impCopyRow, impSAddRow, impVAddRow, impSSubRow,
  10.      impVSubRow, impSMulRow, impSDivRow, impClampRow - math operations on
  11.      image rows
  12.  
  13. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.      ####iiiinnnncccclllluuuuddddeeee <<<<iiiimmmmpppp....hhhh>>>>
  15.  
  16.      vvvvooooiiiidddd iiiimmmmppppZZZZeeeerrrrooooRRRRoooowwww((((sssshhhhoooorrrrtttt ****ddddppppttttrrrr,,,, iiiinnnntttt nnnn))));;;;
  17.  
  18.      vvvvooooiiiidddd iiiimmmmppppIIIInnnniiiittttRRRRoooowwww((((sssshhhhoooorrrrtttt ****ddddppppttttrrrr,,,, iiiinnnntttt vvvvaaaallll,,,, iiiinnnntttt nnnn))));;;;
  19.  
  20.      vvvvooooiiiidddd iiiimmmmppppCCCCooooppppyyyyRRRRoooowwww((((sssshhhhoooorrrrtttt ****ddddppppttttrrrr,,,, sssshhhhoooorrrrtttt ****ssssppppttttrrrr,,,, iiiinnnntttt nnnn))));;;;
  21.  
  22.      vvvvooooiiiidddd iiiimmmmppppSSSSAAAAddddddddRRRRoooowwww((((sssshhhhoooorrrrtttt ****ddddppppttttrrrr,,,, sssshhhhoooorrrrtttt ****ssssppppttttrrrr,,,, iiiinnnntttt vvvvaaaallll,,,, iiiinnnntttt nnnn))));;;;
  23.  
  24.      vvvvooooiiiidddd iiiimmmmppppVVVVAAAAddddddddRRRRoooowwww((((sssshhhhoooorrrrtttt ****ddddppppttttrrrr,,,, sssshhhhoooorrrrtttt ****ssssppppttttrrrr1111,,,, sssshhhhoooorrrrtttt ****ssssppppttttrrrr2222,,,,
  25.                      iiiinnnntttt nnnn))));;;;
  26.  
  27.      vvvvooooiiiidddd iiiimmmmppppSSSSSSSSuuuubbbbRRRRoooowwww((((sssshhhhoooorrrrtttt ****ddddppppttttrrrr,,,, sssshhhhoooorrrrtttt ****ssssppppttttrrrr,,,, iiiinnnntttt vvvvaaaallll,,,, iiiinnnntttt nnnn))));;;;
  28.  
  29.      vvvvooooiiiidddd iiiimmmmppppVVVVSSSSuuuubbbbRRRRoooowwww((((sssshhhhoooorrrrtttt ****ddddppppttttrrrr,,,, sssshhhhoooorrrrtttt ****ssssppppttttrrrr1111,,,, sssshhhhoooorrrrtttt ****ssssppppttttrrrr2222,,,,
  30.                      iiiinnnntttt nnnn))));;;;
  31.  
  32.      vvvvooooiiiidddd iiiimmmmppppSSSSMMMMuuuullllRRRRoooowwww((((sssshhhhoooorrrrtttt ****ddddppppttttrrrr,,,, sssshhhhoooorrrrtttt ****ssssppppttttrrrr,,,, iiiinnnntttt vvvvaaaallll,,,, iiiinnnntttt nnnn))));;;;
  33.  
  34.      vvvvooooiiiidddd iiiimmmmppppSSSSDDDDiiiivvvvRRRRoooowwww((((sssshhhhoooorrrrtttt ****ddddppppttttrrrr,,,, sssshhhhoooorrrrtttt ****ssssppppttttrrrr,,,, iiiinnnntttt vvvvaaaallll,,,, iiiinnnntttt nnnn))));;;;
  35.  
  36.      vvvvooooiiiidddd iiiimmmmppppCCCCllllaaaammmmppppRRRRoooowwww((((sssshhhhoooorrrrtttt ****ddddppppttttrrrr,,,, sssshhhhoooorrrrtttt ****ssssppppttttrrrr,,,, iiiinnnntttt lllloooovvvv,,,,
  37.                       iiiinnnntttt hhhhiiiivvvv,,,, iiiinnnntttt nnnn))));;;;
  38.  
  39. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  40.      In the following descriptions, the parameter _n specifies the number of
  41.      elements in a array and not the number of bytes in the array. In
  42.      addition, functions that take a source array pointer and a destination
  43.      array pointer can specify the same array as both a source and
  44.      destination.
  45.  
  46.      _i_m_p_Z_e_r_o_R_o_w initializes to zero the array pointed to by _d_p_t_r.
  47.  
  48.      _i_m_p_I_n_i_t_R_o_w initializes the array _d_p_t_r to the value _v_a_l.
  49.  
  50.      _i_m_p_C_o_p_y_R_o_w copies the array _s_p_t_r to the array _d_p_t_r.
  51.  
  52.      _i_m_p_S_A_d_d_R_o_w adds the value _v_a_l to each element of the array _s_p_t_r storing
  53.      the result in the array _d_p_t_r.
  54.  
  55.      _i_m_p_V_A_d_d_R_o_w adds the corresponding elements of _s_p_t_r_1 and _s_p_t_r_2 and stores
  56.      the result in the array _d_p_t_r.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. iiiimmmmppppZZZZeeeerrrrooooRRRRoooowwww((((3333))))                    IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo                     iiiimmmmppppZZZZeeeerrrrooooRRRRoooowwww((((3333))))
  71.  
  72.  
  73.  
  74.      _i_m_p_S_S_u_b_R_o_w subtracts the value _v_a_l from each element of the array _s_p_t_r
  75.      and stores the result in the array _d_p_t_r.
  76.  
  77.      _i_m_p_V_S_u_b_R_o_w subtracts the corresponding elements of _s_p_t_r_2 from _s_p_t_r_1 and
  78.      stores the result in the array _d_p_t_r.
  79.  
  80.      _i_m_p_S_M_u_l_R_o_w multiplies each element of the array _s_p_t_r by _v_a_l and stores
  81.      the result in _d_p_t_r.
  82.  
  83.      _i_m_p_S_D_i_v_R_o_w divides each element of the array _s_p_t_r by _v_a_l and stores the
  84.      result in _d_p_t_r.
  85.  
  86.      _i_m_p_C_l_a_m_p_R_o_w clamps the values of the array _s_p_t_r between the values _l_o_v
  87.      and _h_i_v inclusive. The result is stored in the array _d_p_t_r.
  88.  
  89. NNNNOOOOTTTTEEEESSSS
  90.      1.   It is the caller's responsibility to allocate all buffer storage.
  91.  
  92.      2.   Since the arrays referenced by these functions are _s_h_o_r_t integer
  93.           arrays, the caller should be aware of overflow/wraparound
  94.           conditions.
  95.  
  96. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  97.      libimp(3)
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.